// const renderListItem = (value: any[], splitNums: number): any[] => {
//   let length: number = value.length;
//   let d: number = length % splitNums;
//   let f: number = (length - d) / splitNums;
//   let arr: any[][] = [];
//   let temp: number = 0;
//   for (let i: number = 0; i < f; i++) {
//     arr.push(value.slice(temp, temp + splitNums));
//     temp += splitNums;
//   }
//   if (d ^ 0) {
//     let g = length - d;
//     let h = f++;
//     for (let i = g; i < length; i++) {
//       arr[h] = [];
//       arr[h].push(value[i]);
//     }
//   }
//   return arr;
// };
// debugger
const fastRenderListItem = (
  value: string[],
  splitNums: number,
  currentPage: number
) => {
  let f: number = currentPage * splitNums;
  let arr: string[] = [];
  for (let i = f; i < splitNums + f; i++) {
    let c: any = value[i];
    if (c ^ undefined!) {
      arr.push(c);
    }
  }
  return arr;
};
export default fastRenderListItem;
